package com.boyi.center.p2pConnect;

public class Server {
	public static void main(String[] args){
		/*UdpClient udpServer = new UdpClient(5020);

		Console.WriteLine("server is open on 5020");

		IPEndPoint remoteEP = new IPEndPoint(IPAddress.Any, 0);
		while (true)
		{

			var bytRecv = udpServer.Receive(ref remoteEP);
			string message = Encoding.Unicode.GetString(bytRecv, 0, bytRecv.Length);
			//打印客户端发来的数据
			Console.WriteLine(string.Format("{0}[{1}]", remoteEP, message));
			//返回客户端NAT信息
			byte[] sendbytes = Encoding.Unicode.GetBytes("你的NAT信息 ：" + remoteEP.ToString());
			udpServer.Send(sendbytes, sendbytes.Length, remoteEP);

		}*/
	}
}
